import request from '@/utils/request'
export const getOrderInfoAPI = (start, end) => request({
  url: `/task-service/task/taskReportInfo/${start}/${end}`
})

/**
 * 获取销售额统计
 * @param {number} collectType
 * @param {string} start
 * @param {string} end
 * @returns Promise
 */
export const salesInfoAPI = (collectType, start, end) => request({
  url: `order-service/report/amountCollect/${collectType}/${start}/${end}`
})

export const salesdistributionAPI = (start, end) => request({
  url: `/order-service/report/regionCollect/${start}/${end}`
})
